//
//  BasePickView.h
//  New_Runway
//
//  Created by mack on 2018/1/27.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import <UIKit/UIKit.h>

//@class BasePickView;

//@protocol BasePickViewDelegate<NSObject>
//
//@optional
//- (void)basePickView:(BasePickView *)basePickView confirmButtonDidClick:(UIButton *)sender;
//
//- (void)basePickView:(BasePickView *)basePickView cancelButtonDidClick:(UIButton *)sender;
//
//@end

@interface BasePickView : UIView

//@property (weak, nonatomic) id<BasePickViewDelegate> delegate;

@property (nonatomic, strong) UIView *contentView;

//选择器
@property (nonatomic, strong)UIPickerView *pickerView;
//取消按钮
@property (nonatomic, strong)UIButton *cancelButton;
//确定按钮
@property (nonatomic, strong)UIButton *confirmButton;

//选择器的高度
@property (nonatomic, assign)CGFloat pickerViewHeight;

@property (nonatomic, strong)UIView *topview;

@property (assign, nonatomic) BOOL isShow;

/**
 *  创建视图,初始化视图时初始数据
 */
- (void)initPickView;

/**
 *  确认按钮的点击事件
 */
- (void)clickConfirmButton;

/**
 *  pickerView的显示
 */
- (void)show;

/**
 *  移除pickerView
 */
- (void)disMiss;
@end
